
package com.be.beadmin.basicData.repository;

import com.be.beadmin.basicData.entity.Customer;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author chenwei
* @date 2022-12-23
**/
public interface CustomerRepository extends JpaRepository<Customer, String>, JpaSpecificationExecutor<Customer> {

    Customer findCustomerByIdAndDelete(String id, Integer delete);

    List<Customer> findCustomerByCustomerCodeAndDelete(String code, Integer delete);

    Customer findCustomerById(String id);

    Customer findCustomerByCustomerCode(String customerCode);

}